/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.managedbean;

import java.util.ArrayList;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import org.primefaces.model.menu.DefaultMenuItem;
import org.primefaces.model.menu.MenuItem;

/**
 *
 * @author DOWN
 */
@ManagedBean
@RequestScoped
public class MenuBean {

    private ArrayList<MenuItem> menus;
    private MenuItem currentMenu;
    
    public MenuBean() {
        menus = new ArrayList<MenuItem>();
        DefaultMenuItem itemHome = new DefaultMenuItem();
        
        /*Create Default Menus*/
        itemHome.setTitle("Home");
        itemHome.setUrl("index.xhtml");
        itemHome.setIcon("ui-icon-home");
        menus.add(itemHome);
        
        /*DefaultMenuItem itemUsers = new DefaultMenuItem();
        itemUsers.setTitle("Users");
        itemUsers.setUrl("users.xhtml");
        itemUsers.setIcon("ui-icon-person");
        menus.add(itemUsers);
        
        DefaultMenuItem itemImport = new DefaultMenuItem();
        itemImport.setTitle("Import");
        itemImport.setUrl("import.xhtml");
        itemImport.setIcon("ui-icon-print");
        menus.add(itemImport);*/
        
        
        
        /*DefaultMenuItem itemSettings = new DefaultMenuItem();
        itemImport.setTitle("Settings");
        itemImport.setUrl("settings.xhtml");
        itemImport.setIcon("ui-icon-print");
        menus.add(itemSettings);*/
    }

    public ArrayList<MenuItem> getMenus() {
        return menus;
    }

    public void setMenus(ArrayList<MenuItem> menus) {
        this.menus = menus;
    }

    public MenuItem getCurrentMenu() {
        return currentMenu;
    }

    public void setCurrentMenu(MenuItem currentMenu) {
        this.currentMenu = currentMenu;
    }
    
    
    

}
